#!/bin/bash

set -o errexit

BLAST_DB_PATH=$1

MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
    WU_BLASTN_BIN=/home/mixagol/wu-blast/blastn
else
    WU_BLASTN_BIN=/home/mixagol/wu-blast32/blastn
fi

$WU_BLASTN_BIN $BLAST_DB_PATH -                                              \
    -matrix pupy                                                                \
    -Q 20                                                                       \
    -R 10                                                                       \
    -E 10                                                                       \
    -B 100000                                                                   \
    -V 100000                                                                   \
    -hspsepSmax 100000                                                          \
    -mformat 2
